package com.example.project3.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.project3.entity.Tasks;
import com.example.project3.mapper.TasksMapper;
import com.example.project3.service.TasksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 23931
 * @description 针对表【tasks】的数据库操作Service实现
 * @createDate 2023-05-29 15:49:00
 */
@Service
public class TasksServiceImpl extends ServiceImpl<TasksMapper, Tasks>
        implements TasksService {
    private TasksMapper tasksMapper;

    @Autowired
    public void setTasksMapper(TasksMapper tasksMapper) {
        this.tasksMapper = tasksMapper;
    }


    @Override
    public List<Tasks> listUser(Integer uid) {
        return tasksMapper.selectUserTasks(uid);
    }
}




